<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<script type="text/javascript"
	src="${staticPath}/lib/jquery/1.10.2/jquery.js"></script>
<script src="${staticPath}/js/jquery-dialog.js" type="text/javascript"></script>
<script type="text/javascript">
	function funform(url, target) {
		window.open(url, target);
	}

	function showModal() {
		$("#contractTypeMoadl").modal();
	}
</script>
</head>
<body>
	<div class="row">
		<div class="col-xs-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">
						合同附件
						<button 
							class="btn btn-success btn-sm pull-right" role="button"
							onclick="funform('${contextPath}/sys/base/contractAtt/${typeId}/addAtt','_self');">新增</button>

						<button style="margin-right:5px;"
							class="btn btn-success btn-sm pull-right" role="button"
							onclick="funform('${contextPath}/sys/base/contractAtt/${typeId}/showImport'),'_self'">导入</button>
					</h3>

				</div>
				<tags:message content="${message}" />
				<table class="table table-striped table-bordered table-hover">
					<thead>
						<tr>

							<th>ID</th>
							<th>名称</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list}" var="contractAtt">
							<tr>
								<td>${contractAtt.id}</td>
								<td>${contractAtt.name}</td>
								<td><a
									href="${contextPath}/sys/base/contractAtt/${contractAtt.id}/${typeId}/editAtt">修改</a>
									<a
									href="${contextPath}/sys/base/contractAtt/${contractAtt.id}/deleteAtt"
									onclick="return Oosp_Confirm('确认要删除该条数据吗？', this.href)">删除</a>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
				<div class="panel-footer">
					<!--<page:pager page="${page}"/> 等待宏天分页功能完善-->
					<ul class="pagination o-list-pagination">
						<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
						<li class="disabled"><a href="#">1</a></li>
						<li class="disabled"><a href="#">下一页 &#187;</a></li>
						<li class="disabled info">&nbsp;<a href="javascript:">当前
								<input type="text" value="1"
								onkeypress="var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,10);"
								onclick="this.select();" /> / <input type="text" value="10"
								onkeypress="var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value);"
								onclick="this.select();" /> 条，共 10 条
						</a>
						<li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</body>
</html>